﻿<?xml version="1.0" encoding="utf-8"?>                                         
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
<xsl:decimal-format name='H' grouping-separator='-' />
<xsl:decimal-format name='S' grouping-separator='/' />
<xsl:decimal-format name='C' grouping-separator=',' />
<xsl:template match="/">                                       
<html version="Version 1.0.0.1 ( build : 800902_001 )">
<HEAD>

<META content="text/html; charset=utf-8" http-equiv="Content-Type"></META><LINK rel="stylesheet" type="text/css" href="/resource/css/style.css"></LINK></HEAD>    
<BODY leftmargin='10' >
    <xsl:apply-templates/>                                       
    </BODY>
  </html>                                                        
</xsl:template>                                                  
                                                                 
<xsl:template match="MXMESSAGE">                               
    <xsl:apply-templates select="postcode"/>          
</xsl:template>                                                  
<xsl:template match="postcode">                       



<P align="left"><script name="wscript1" mxtype="wscript" src="resource/script/icommon.js">
</script><!-->mxtype@wscript<--><script name="wscript0" mxtype="wscript" capx="28" capy="20" tn="634342530067012455">
<xsl:text disable-output-escaping="yes">
<![CDATA[
function getPostNumber()
{
	//비동기 방식 - iajax.open(url)
	
	//동기 방식 - iajax.openSync(url)
	//iajax.openSync("/eajax_01.do");
	
	//서버에 요청 전송
	
	//error.open();
	
	//비동기 방식은 끝 -> 아래 결과 값 받아주는 메소드 구현
	//동기방식은 결과 값 만들기 -> 아래 메소드 미 구현
	//iajax.setObjectValue(msgbox,"msg");
	if(inputAddr.value.length >= 0) 
	{
		var inputText = inputAddr.value;
		alert(inputText);
		var url = "/post.do?&addr=" + iutil.encodeURL(inputText);
		location.href = url;
		
//		iajax.openSync("/post.do");
//		iajax.addParam("addr", iutil.encodeURL(inputText));			
//		iajax.send();
//		alert(iajax.getText());
		
//		alert("실행" + inputText);
//		iajax.open("/post.do");
//		iajax.addParam("addr" , iutil.encodeURL(inputText)); 
//		iajax.send();
	} else 
	{
		alert("주소를 입력하십시요");
	}	
}
function fnProcAjaxResult()
{
//	alert("front : " + iajax.getValue("frontPost"));
//	alert("back : " + iajax.getValue("backPost"));
//	alert("addr : " + iajax.getValue("addrPost"));
//	iajax.setObjectValue(frontpost, "frontPost");
//	iajax.setObjectValue(frontpost, "backPost");
//	iajax.setObjectValue(frontpost, "addrPost")
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<-->동 입력 : <INPUT size="24" name="inputAddr">
</INPUT><BUTTON onclick="getPostNumber()" name="nbutton1" value="button">


<P>조회&#xa0;

</P></BUTTON><script language="JavaScript" name="wscript1" mxtype="wscript" capx="1" capy="1">
<xsl:text disable-output-escaping="yes">
<![CDATA[
function OpenWin() 
{ 
  window.open('http://naver.com','open1','width=250,height=250');
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script></P>

<P align="left">

<TABLE style="HEIGHT: 78px" border="1" cellspacing="1" cellpadding="1" width="401" endfor="2" beginfor="2" xmllink="우편번호목록" stylett="0C00000014000000789CF370F574F708B15230B728A800001520036B" xml="true">

<TBODY>

<TR>

<TD height="24" width="185">

<P align="center">우편번호</P></TD>

<TD height="24" width="211">

<P align="center">주소</P></TD>

</TR>
<xsl:for-each select="우편번호목록"><!-->mxtype@beginfor@name@@ibkuniqueid@ms__id61@xmllink@우편번호목록@nonobject@true<-->

<TR forendxml="우편번호목록" forend="true" forbeginxml="우편번호목록" forbegin="true">

<TD height="52" width="185">

<P align="center"><xsl:value-of select="frontPost"><!-->xml@true@xmlesc@false@textfmt@@name@label1@xmllink@frontPost@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of>-<xsl:value-of select="backPost"><!-->xml@true@xmlesc@false@textfmt@@name@label2@xmllink@backPost@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of></P></TD>

<TD height="52" width="250">

<P align="center"><xsl:value-of select="addrPost"><!-->xml@true@xmlesc@false@textfmt@@name@label3@xmllink@addrPost@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of><form name="begin_form1" mxtype="begin_form" method="post">&#xa0;<INPUT style="WIDTH: 9px; HEIGHT: 22px" id="frontPost" value="#" size="1" type="hidden" name="frontPost" xmllink="frontPost" stylett="1800000020000000789C0BF77409F1B052B02CA8B056F070F574F708B15230322AA80000535206B6" xml="true">
<xsl:attribute name="value"><xsl:value-of select="frontPost"/></xsl:attribute></INPUT><INPUT style="WIDTH: 9px; HEIGHT: 23px" id="backPost" value="#" size="1" type="hidden" name="backPost" xmllink="backPost" stylett="1800000020000000789C0BF77409F1B052B02CA8B056F070F574F708B15230322EA80000535506B7" xml="true">
<xsl:attribute name="value"><xsl:value-of select="backPost"/></xsl:attribute></INPUT><INPUT style="WIDTH: 14px; HEIGHT: 23px" id="addrPost" value="#" size="84" type="hidden" name="addrPost" xmllink="addrPost" stylett="1900000021000000789C0BF77409F1B052303429A8B056F070F574F708B15230322EA80000584D06E3" xml="true">
<xsl:attribute name="value"><xsl:value-of select="addrPost"/></xsl:attribute></INPUT>&#xa0;<INPUT onclick="input(this.form)" value="선택" type="button" name="button4">
</INPUT></form> </P></TD></TR>
</xsl:for-each><!-->mxtype@endfor@name@@ibkuniqueid@ms__id62@xmllink@@nonobject@true<-->
<xsl:if test="count(사원목록) &lt; 1"><!-->mxtype@if@name@@ibkuniqueid@ms__id63@script@count(사원목록) < 1@xmlfdlist@@nonobject@true<-->

<TR enablecondition="count(사원목록) &lt; 1">
<xsl:if test="count(우편번호목록) = '0'"><!-->mxtype@if@name@@ibkuniqueid@ms__id65@script@count(우편번호목록) = '0'@xmlfdlist@@nonobject@true<-->

<TD height="24" width="397" colspan="2" enablecondition="count(우편번호목록) = '0'">

<P align="center">결과 값이 존재하지 않습니다.</P></TD>
</xsl:if><!-->mxtype@endif@name@@ibkuniqueid@ms__id66@mxscript@@nonobject@true<--></TR>
</xsl:if><!-->mxtype@endif@name@@ibkuniqueid@ms__id64@mxscript@@nonobject@true<-->

</TBODY></TABLE></P>

<P><script language="JavaScript" name="wscript1" mxtype="wscript" capx="1" capy="1" tn="634345083267198716">
<xsl:text disable-output-escaping="yes">
<![CDATA[
function input(fom)
{
 var front = fom.frontPost.value;
 var back = fom.backPost.value;
 var addr = fom.addrPost.value;
 parent.opener.document.getElementById("ZIP_CODE1").value = front;
 parent.opener.document.getElementById("ZIP_CODE2").value = back;
 parent.opener.document.getElementById("ADDR").value = addr;
 
 window.close();
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<-->&#xa0;

</P>
</xsl:template>										  
</xsl:stylesheet>									  
